package com.JobFind.DTO;

import java.util.List;

import com.JobFind.model.TbCompany;
import com.JobFind.model.TbResume;
import com.JobFind.model.TbUser;

public class ResumeDTO implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	
	private Integer resumeId;
    private UserDTO userDTO;
    private String headPhoto;
    private String jobPosition;
    private String learningExperience;
    private String projectExperience;
    private String honor;
    private String hobby;
    private String resumeRemarks;
    private List<CompanyDTO> companyiesDTO;
	public Integer getResumeId() {
		return resumeId;
	}
	public void setResumeId(Integer resumeId) {
		this.resumeId = resumeId;
	}
	public UserDTO getUserDTO() {
		return userDTO;
	}
	public void setUserDTO(UserDTO userDTO) {
		this.userDTO = userDTO;
	}
	public String getJobPosition() {
		return jobPosition;
	}
	public void setJobPosition(String jobPosition) {
		this.jobPosition = jobPosition;
	}
	public String getLearningExperience() {
		return learningExperience;
	}
	public void setLearningExperience(String learningExperience) {
		this.learningExperience = learningExperience;
	}
	public String getProjectExperience() {
		return projectExperience;
	}
	public void setProjectExperience(String projectExperience) {
		this.projectExperience = projectExperience;
	}
	public String getHobby() {
		return hobby;
	}
	public void setHobby(String hobby) {
		this.hobby = hobby;
	}
	public String getResumeRemarks() {
		return resumeRemarks;
	}
	public void setResumeRemarks(String resumeRemarks) {
		this.resumeRemarks = resumeRemarks;
	}
	public String getHeadPhoto() {
		return headPhoto;
	}
	public void setHeadPhoto(String headPhoto) {
		this.headPhoto = headPhoto;
	}
	public String getHonor() {
		return honor;
	}
	public void setHonor(String honor) {
		this.honor = honor;
	}
	public List<CompanyDTO> getCompanyiesDTO() {
		return companyiesDTO;
	}
	public void setCompanyiesDTO(List<CompanyDTO> companyiesDTO) {
		this.companyiesDTO = companyiesDTO;
	}
    
    public TbResume toDAO(){
    	TbResume resumeBean = new TbResume();
    	resumeBean.setHeadPhoto(this.getHeadPhoto());
    	resumeBean.setHobby(this.getHobby());
    	resumeBean.setHonor(this.getHonor());
    	resumeBean.setJobPosition(this.getJobPosition());
    	resumeBean.setLearningExperience(this.getLearningExperience());
    	resumeBean.setProjectExperience(this.getProjectExperience());
    	resumeBean.setResumeId(this.getResumeId());
    	resumeBean.setResumeRemarks(this.getResumeRemarks());
    	resumeBean.setTbUser(this.getUserDTO().toDAO());
    	return resumeBean;
    }

}
